/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ranophoenix.osgijee.module2.impl;

import java.net.URL;
import org.osgi.framework.BundleContext;
import ranophoenix.osgijee.core.ModuleExtension;

/**
 *
 * @author ranophoenix_2
 */
public class ModuleExtensionImpl implements ModuleExtension {

    public static final String MODULE_NAME = "MODULE_2";
    private BundleContext m_context;

    ModuleExtensionImpl(BundleContext bc) {
        m_context = bc;
    }

    public String getModuleName() {
        return MODULE_NAME;
    }

    public URL getResource(String path) {
        return m_context.getBundle().getEntry(path);
    }

    public String getAboutPage() {
        return "/about.xhtml";
    }
}
